﻿using AiShow.Model;
using AiShow.Model.OperResult;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiShow.BLL
{
  public  interface IAccountManager
    {
        /// <summary>
        /// 通过用户名登录
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <returns>返回用户信息</returns>
        OperResult<TBUsers> LoginByUserName(string userName, string password);

        /// <summary>
        /// 通过手机号登录
        /// </summary>
        /// <param name="mobileNumber"></param>
        /// <param name="password"></param>
        /// <returns>返回用户信息</returns>
        OperResult<TBUsers> LoginByMobileNumber(string mobileNumber, string password);

        /// <summary>
        /// 注册用户
        /// </summary>
        /// <param name="login">登录信息</param>
        /// <returns></returns>
        OperResult Register(TBLogins login);
    }

}
